#include"Student.h"
#include<stdio.h>
#include<string.h>

//放具体实现
void PrintStu(const Stu *s)
{
    //结构体指针访问结构体变量用->
    printf("名字:%s 学号:%d 年龄:%d 分数:%.1lf\n",s->Name,s->id,s->age,s->score);
}

void SetStuValue(Stu *s, const char *name, int id, int age, double score)
{
    s->id=id;
    s->age=age;
    s->score=score;
    strcpy(s->Name,name);
}
